package dungeonDigger.Tools;

public class Rectangle extends org.newdawn.slick.geom.Rectangle {
	private static final long	serialVersionUID	= 7596155976336379628L;

	public Rectangle(float x, float y, float width, float height) {
		super( x, y, width, height );
	}

	@Override
	protected void createPoints() {
		float useWidth = width;
		float useHeight = height;
		points = new float[8];
		points[0] = x;
		points[1] = y;
		points[2] = x + useWidth;
		points[3] = y;
		points[4] = x + useWidth;
		points[5] = y + useHeight;
		points[6] = x;
		points[7] = y + useHeight;
		maxX = points[2];
		maxY = points[5];
		minX = points[0];
		minY = points[1];
		findCenter();
		calculateRadius();
	}
}
